﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200111B RID: 4379
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SendMsgCsReq : IMessage<SendMsgCsReq>, IMessage, IEquatable<SendMsgCsReq>, IDeepCloneable<SendMsgCsReq>, IBufferMessage
	{
		// Token: 0x1700377C RID: 14204
		// (get) Token: 0x0600C400 RID: 50176 RVA: 0x0021210F File Offset: 0x0021030F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SendMsgCsReq> Parser
		{
			get
			{
				return SendMsgCsReq._parser;
			}
		}

		// Token: 0x1700377D RID: 14205
		// (get) Token: 0x0600C401 RID: 50177 RVA: 0x00212116 File Offset: 0x00210316
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SendMsgCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700377E RID: 14206
		// (get) Token: 0x0600C402 RID: 50178 RVA: 0x00212128 File Offset: 0x00210328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SendMsgCsReq.Descriptor;
			}
		}

		// Token: 0x0600C403 RID: 50179 RVA: 0x0021212F File Offset: 0x0021032F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SendMsgCsReq()
		{
		}

		// Token: 0x0600C404 RID: 50180 RVA: 0x00212150 File Offset: 0x00210350
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SendMsgCsReq(SendMsgCsReq other) : this()
		{
			this.extraId_ = other.extraId_;
			this.messageText_ = other.messageText_;
			this.targetList_ = other.targetList_.Clone();
			this.chatType_ = other.chatType_;
			this.messageType_ = other.messageType_;
			this.oHINLDBELBA_ = ((other.oHINLDBELBA_ != null) ? other.oHINLDBELBA_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C405 RID: 50181 RVA: 0x002121D1 File Offset: 0x002103D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SendMsgCsReq Clone()
		{
			return new SendMsgCsReq(this);
		}

		// Token: 0x1700377F RID: 14207
		// (get) Token: 0x0600C406 RID: 50182 RVA: 0x002121D9 File Offset: 0x002103D9
		// (set) Token: 0x0600C407 RID: 50183 RVA: 0x002121E1 File Offset: 0x002103E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ExtraId
		{
			get
			{
				return this.extraId_;
			}
			set
			{
				this.extraId_ = value;
			}
		}

		// Token: 0x17003780 RID: 14208
		// (get) Token: 0x0600C408 RID: 50184 RVA: 0x002121EA File Offset: 0x002103EA
		// (set) Token: 0x0600C409 RID: 50185 RVA: 0x002121F2 File Offset: 0x002103F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string MessageText
		{
			get
			{
				return this.messageText_;
			}
			set
			{
				this.messageText_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17003781 RID: 14209
		// (get) Token: 0x0600C40A RID: 50186 RVA: 0x00212205 File Offset: 0x00210405
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TargetList
		{
			get
			{
				return this.targetList_;
			}
		}

		// Token: 0x17003782 RID: 14210
		// (get) Token: 0x0600C40B RID: 50187 RVA: 0x0021220D File Offset: 0x0021040D
		// (set) Token: 0x0600C40C RID: 50188 RVA: 0x00212215 File Offset: 0x00210415
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChatType ChatType
		{
			get
			{
				return this.chatType_;
			}
			set
			{
				this.chatType_ = value;
			}
		}

		// Token: 0x17003783 RID: 14211
		// (get) Token: 0x0600C40D RID: 50189 RVA: 0x0021221E File Offset: 0x0021041E
		// (set) Token: 0x0600C40E RID: 50190 RVA: 0x00212226 File Offset: 0x00210426
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MsgType MessageType
		{
			get
			{
				return this.messageType_;
			}
			set
			{
				this.messageType_ = value;
			}
		}

		// Token: 0x17003784 RID: 14212
		// (get) Token: 0x0600C40F RID: 50191 RVA: 0x0021222F File Offset: 0x0021042F
		// (set) Token: 0x0600C410 RID: 50192 RVA: 0x00212237 File Offset: 0x00210437
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MNMEBDFAJJP OHINLDBELBA
		{
			get
			{
				return this.oHINLDBELBA_;
			}
			set
			{
				this.oHINLDBELBA_ = value;
			}
		}

		// Token: 0x0600C411 RID: 50193 RVA: 0x00212240 File Offset: 0x00210440
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SendMsgCsReq);
		}

		// Token: 0x0600C412 RID: 50194 RVA: 0x00212250 File Offset: 0x00210450
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SendMsgCsReq other)
		{
			return other != null && (other == this || (this.ExtraId == other.ExtraId && !(this.MessageText != other.MessageText) && this.targetList_.Equals(other.targetList_) && this.ChatType == other.ChatType && this.MessageType == other.MessageType && object.Equals(this.OHINLDBELBA, other.OHINLDBELBA) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C413 RID: 50195 RVA: 0x002122E8 File Offset: 0x002104E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ExtraId != 0U)
			{
				num ^= this.ExtraId.GetHashCode();
			}
			if (this.MessageText.Length != 0)
			{
				num ^= this.MessageText.GetHashCode();
			}
			num ^= this.targetList_.GetHashCode();
			if (this.ChatType != ChatType.None)
			{
				num ^= this.ChatType.GetHashCode();
			}
			if (this.MessageType != MsgType.None)
			{
				num ^= this.MessageType.GetHashCode();
			}
			if (this.oHINLDBELBA_ != null)
			{
				num ^= this.OHINLDBELBA.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C414 RID: 50196 RVA: 0x002123A4 File Offset: 0x002105A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C415 RID: 50197 RVA: 0x002123AC File Offset: 0x002105AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C416 RID: 50198 RVA: 0x002123B8 File Offset: 0x002105B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ChatType != ChatType.None)
			{
				output.WriteRawTag(8);
				output.WriteEnum((int)this.ChatType);
			}
			if (this.MessageType != MsgType.None)
			{
				output.WriteRawTag(24);
				output.WriteEnum((int)this.MessageType);
			}
			this.targetList_.WriteTo(ref output, SendMsgCsReq._repeated_targetList_codec);
			if (this.oHINLDBELBA_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.OHINLDBELBA);
			}
			if (this.MessageText.Length != 0)
			{
				output.WriteRawTag(66);
				output.WriteString(this.MessageText);
			}
			if (this.ExtraId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.ExtraId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C417 RID: 50199 RVA: 0x0021247C File Offset: 0x0021067C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ExtraId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ExtraId);
			}
			if (this.MessageText.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.MessageText);
			}
			num += this.targetList_.CalculateSize(SendMsgCsReq._repeated_targetList_codec);
			if (this.ChatType != ChatType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.ChatType);
			}
			if (this.MessageType != MsgType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.MessageType);
			}
			if (this.oHINLDBELBA_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.OHINLDBELBA);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C418 RID: 50200 RVA: 0x00212534 File Offset: 0x00210734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SendMsgCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ExtraId != 0U)
			{
				this.ExtraId = other.ExtraId;
			}
			if (other.MessageText.Length != 0)
			{
				this.MessageText = other.MessageText;
			}
			this.targetList_.Add(other.targetList_);
			if (other.ChatType != ChatType.None)
			{
				this.ChatType = other.ChatType;
			}
			if (other.MessageType != MsgType.None)
			{
				this.MessageType = other.MessageType;
			}
			if (other.oHINLDBELBA_ != null)
			{
				if (this.oHINLDBELBA_ == null)
				{
					this.OHINLDBELBA = new MNMEBDFAJJP();
				}
				this.OHINLDBELBA.MergeFrom(other.OHINLDBELBA);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C419 RID: 50201 RVA: 0x002125EE File Offset: 0x002107EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C41A RID: 50202 RVA: 0x002125F8 File Offset: 0x002107F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 8U)
					{
						this.ChatType = (ChatType)input.ReadEnum();
						continue;
					}
					if (num == 24U)
					{
						this.MessageType = (MsgType)input.ReadEnum();
						continue;
					}
					if (num == 48U)
					{
						goto IL_65;
					}
				}
				else if (num <= 58U)
				{
					if (num == 50U)
					{
						goto IL_65;
					}
					if (num == 58U)
					{
						if (this.oHINLDBELBA_ == null)
						{
							this.OHINLDBELBA = new MNMEBDFAJJP();
						}
						input.ReadMessage(this.OHINLDBELBA);
						continue;
					}
				}
				else
				{
					if (num == 66U)
					{
						this.MessageText = input.ReadString();
						continue;
					}
					if (num == 88U)
					{
						this.ExtraId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_65:
				this.targetList_.AddEntriesFrom(ref input, SendMsgCsReq._repeated_targetList_codec);
			}
		}

		// Token: 0x04004F13 RID: 20243
		private static readonly MessageParser<SendMsgCsReq> _parser = new MessageParser<SendMsgCsReq>(() => new SendMsgCsReq());

		// Token: 0x04004F14 RID: 20244
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F15 RID: 20245
		public const int ExtraIdFieldNumber = 11;

		// Token: 0x04004F16 RID: 20246
		private uint extraId_;

		// Token: 0x04004F17 RID: 20247
		public const int MessageTextFieldNumber = 8;

		// Token: 0x04004F18 RID: 20248
		private string messageText_ = "";

		// Token: 0x04004F19 RID: 20249
		public const int TargetListFieldNumber = 6;

		// Token: 0x04004F1A RID: 20250
		private static readonly FieldCodec<uint> _repeated_targetList_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x04004F1B RID: 20251
		private readonly RepeatedField<uint> targetList_ = new RepeatedField<uint>();

		// Token: 0x04004F1C RID: 20252
		public const int ChatTypeFieldNumber = 1;

		// Token: 0x04004F1D RID: 20253
		private ChatType chatType_;

		// Token: 0x04004F1E RID: 20254
		public const int MessageTypeFieldNumber = 3;

		// Token: 0x04004F1F RID: 20255
		private MsgType messageType_;

		// Token: 0x04004F20 RID: 20256
		public const int OHINLDBELBAFieldNumber = 7;

		// Token: 0x04004F21 RID: 20257
		private MNMEBDFAJJP oHINLDBELBA_;
	}
}
